//引入配置好的axios
import request from '@/utils/request'

//获取用户列表
export const findTask = (form) => {
	return request({
		url: '/bdc/bdc/findTask',
		method: 'post',
		params: form
	})
}
export const findTaskById = (id) => {
	return request({
		url: '/bdc/bdc/findTaskById?'+'id='+id,
		method: 'get',
	})
}

export const findZname = () => {
	return request({
		url: '/bdc/bdc/findZname',
		method: 'get',
	})
}
export const findStation = () => {
	return request({
		url: '/bdc/bdc/findStation',
		method: 'get',
	})
}

export const updateTask = (pojo) => {
	return request({
		url: '/bdc/bdc/updateTask',
		method: 'post',
		data: pojo
	})
}

export const addTask = (pojo) => {
	return request({
		url: '/bdc/bdc/addTask',
		method: 'post',
		data: pojo
	})
}

export const deleteTask = (id) => {
	return request({
	url: '/bdc/bdc/deleteTask?'+'id='+id,
		method: 'get',
	
	})
}

export const deleteSelect = (ids) => {
	return request({
	url: '/bdc/bdc/deleteSelect?'+'id='+ids,
		method: 'get',
	
	})
}